package com.zlt.dao;

import com.zlt.entity.Offer;
import com.zlt.entity.ReOffer;


import java.util.List;

public interface OfferDao {
    int insertOffer(Offer offer);
    
    Long selectOfferCountByCid(Integer cid);

    List<Offer> selectAllOffer(Integer page, Long limit, Integer cid);

    int updateOfferState(Integer oid,Integer state);

    int updateOffer(String sql, Object[] params);

    int chickOffer(String username,String oid, String state);

    List<ReOffer> show(String username);
}
